{template 'common/header'}
<div class="main">
	<ul class="nav nav-tabs">
		<li class="active"><a href="{php echo $this->createWebUrl('question', array('id'=>$sinfo['rid']));}">问题列表</a></li>
		<li><a href="{php echo $this->createWebUrl('question_add', array('sid'=>$sinfo['sid']))}">添加问题</a></li>
	</ul>

	{template 'survey_info'}
	<div class="panel panel-default">
		<div class="panel-heading">
			调研问题列表
		</div>
		<div class="panel-body">
			<table class="table table-hover">
				<thead class="navbar-inner">
					<tr>
						<th style="width:60px;" class="row-first">ID</th>						
	                    <th>标题</th>
						<th>描述</th>
						<th>类型</th>
						<th>参数</th>
						<th>默认值</th>
						<th class="hide">规则</th>
						<th>排序</th>
						<th style="text-align:center;">操作</th>
					</tr>
				</thead>
				<tbody>
					{loop $question_list $row}
						<tr>		
							<td class="row-first">{$row['sqid']}</td>
	                        <td>{$row['title']}</td>
	                        <td>{$row['description']}</td>
	                        <td>{$row['type_txt']}</td>
	                        <td>{$row['extra_txt']}</td>
	                        <td>{$row['defvalue']}</td>
	                        <td class="hide">{$row['rule']}</td>
	                        <td>{$row['sort']}</td>
							<td align="center">
								<a href="{php echo $this->createWebUrl('question_add', array('sid'=>$row['sid'],'sqid'=>$row['sqid']));}" >编辑</a> | 
	                        	<a href="{php echo $this->createWebUrl('question_delete', array('sqid'=>$row['sqid']));}" onclick="return confirm('删除记录后不可恢复,确定要删除吗?')" >删除</a>
	                        </td>
						</tr>
					{/loop}
				</tbody>
			</table>
		</div>
	</div>
</div>
{template 'common/footer'}
